﻿using LY.Entity;
using LY.Entity.PageSearch;
using LY.Entity.SearchEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LY.DataAccess.Repository
{
    public class ReFundReposity:BaseRepository
    {
        public PagedList<R_ReFund> QueryReFundList(ReFundSearch search, PageView view)
        {
//            string cols = @" [ID]
//                          ,[Name]
//                          ,[UpperID]
//                          ,[UpperName]
//                          ,[Code]
//                          ,[Path]
//                          ,[Sequence]
//                          ,[URL]
//                          ,[Status]
//                          ,[NameE]
//                          ,[Target]
//                            ,Layer";
//            string sqlWhere = "";
//            if (!string.IsNullOrEmpty(search.Name))
//            {
//                sqlWhere += "AND [Name] LIKE '%" + search.Name + "%' ";
//            }
//            sqlWhere += "AND id <> 170 ";

//            //return base.PageGet<C_Menu>(view, cols, @" [C_Menu]", sqlWhere, " [Sequence]", "");
//            return base.PageGet<C_Menu>(view, cols, @" [C_Menu]", sqlWhere, " [Path]", "");
            return null;
        }

        public int AddReFund(R_ReFund reFund)
        {
            return (int)base.Insert(reFund);
        }

        public R_ReFund GetModel(int id)
        {
            throw new NotImplementedException();
        }
    }
}
